class LoginModel {
  int code;
  String msg;
  Data data;
  String token;

  LoginModel({this.code, this.msg, this.data, this.token});

  LoginModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    token = json['token'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['msg'] = this.msg;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['token'] = this.token;
    return data;
  }
}

class Data {
  Null lallowendate;
  Null lallowstartdate;
  Null lchangepwddate;
  String lcompanyid;
  String ldepartmentid;
  Null ldutyid;
  String lid;
  String lipaddress;
  String lisused;
  Null llockenddate;
  Null llockstartdate;
  String lmacaddress;
  String lmobile;
  String lpassword;
  String lphone;
  String lquickquery;
  String lrealname;
  String lsecuritylevel;
  String lstaterun;
  Null lsubcompanyid;
  Null ltheme;
  String lusercode;
  String lusername;
  String luseronline;
  Null lworkgroupid;
  Null ldepartmentname;
  Null lrolename;
  String lphoto;
  String lclassindex;
  String lplantindex;

  Data(
      {this.lallowendate,
      this.lallowstartdate,
      this.lchangepwddate,
      this.lcompanyid,
      this.ldepartmentid,
      this.ldutyid,
      this.lid,
      this.lipaddress,
      this.lisused,
      this.llockenddate,
      this.llockstartdate,
      this.lmacaddress,
      this.lmobile,
      this.lpassword,
      this.lphone,
      this.lquickquery,
      this.lrealname,
      this.lsecuritylevel,
      this.lstaterun,
      this.lsubcompanyid,
      this.ltheme,
      this.lusercode,
      this.lusername,
      this.luseronline,
      this.lworkgroupid,
      this.ldepartmentname,
      this.lrolename,
      this.lphoto,
      this.lclassindex,
      this.lplantindex});

  Data.fromJson(Map<String, dynamic> json) {
    lallowendate = json['lallowendate'];
    lallowstartdate = json['lallowstartdate'];
    lchangepwddate = json['lchangepwddate'];
    lcompanyid = json['lcompanyid'];
    ldepartmentid = json['ldepartmentid'];
    ldutyid = json['ldutyid'];
    lid = json['lid'];
    lipaddress = json['lipaddress'];
    lisused = json['lisused'];
    llockenddate = json['llockenddate'];
    llockstartdate = json['llockstartdate'];
    lmacaddress = json['lmacaddress'];
    lmobile = json['lmobile'];
    lpassword = json['lpassword'];
    lphone = json['lphone'];
    lquickquery = json['lquickquery'];
    lrealname = json['lrealname'];
    lsecuritylevel = json['lsecuritylevel'];
    lstaterun = json['lstaterun'];
    lsubcompanyid = json['lsubcompanyid'];
    ltheme = json['ltheme'];
    lusercode = json['lusercode'];
    lusername = json['lusername'];
    luseronline = json['luseronline'];
    lworkgroupid = json['lworkgroupid'];
    ldepartmentname = json['ldepartmentname'];
    lrolename = json['lrolename'];
    lphoto = json['lphoto'];
    lclassindex = json['lclassindex'];
    lplantindex = json['lplantindex'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['lallowendate'] = this.lallowendate;
    data['lallowstartdate'] = this.lallowstartdate;
    data['lchangepwddate'] = this.lchangepwddate;
    data['lcompanyid'] = this.lcompanyid;
    data['ldepartmentid'] = this.ldepartmentid;
    data['ldutyid'] = this.ldutyid;
    data['lid'] = this.lid;
    data['lipaddress'] = this.lipaddress;
    data['lisused'] = this.lisused;
    data['llockenddate'] = this.llockenddate;
    data['llockstartdate'] = this.llockstartdate;
    data['lmacaddress'] = this.lmacaddress;
    data['lmobile'] = this.lmobile;
    data['lpassword'] = this.lpassword;
    data['lphone'] = this.lphone;
    data['lquickquery'] = this.lquickquery;
    data['lrealname'] = this.lrealname;
    data['lsecuritylevel'] = this.lsecuritylevel;
    data['lstaterun'] = this.lstaterun;
    data['lsubcompanyid'] = this.lsubcompanyid;
    data['ltheme'] = this.ltheme;
    data['lusercode'] = this.lusercode;
    data['lusername'] = this.lusername;
    data['luseronline'] = this.luseronline;
    data['lworkgroupid'] = this.lworkgroupid;
    data['ldepartmentname'] = this.ldepartmentname;
    data['lrolename'] = this.lrolename;
    data['lphoto'] = this.lphoto;
    data['lclassindex'] = this.lclassindex;
    data['lplantindex'] = this.lplantindex;
    return data;
  }
}
